import java.util.Scanner;

public class NOI1813 {
    public static void main(String[] args) {
        int[][] t = new int[6][8];
        Scanner sc = new Scanner(System.in);
        for (int i = 1; i < 6; i++) {
            for (int j = 1; j < 7; j++) {
                t[i][j] = sc.nextInt();
            }
        }
        
    }
}
